<template>
  <div class="test">
    <GetConfirmCode
      @getConfirmCodeClick="getConfirmCodeClick"
      @timeKeepingDone="timeKeepingDone"
      :timeKeeping="timeKeeping"
      :seconds="10"/>
  </div>
</template>

<script>
import GetConfirmCode from './GetConfirmCode'
export default {
  name: 'Test',
  components: {GetConfirmCode},
  props: {},
  data () {
    return {
      timeKeeping: false,
    }
  },
  methods: {
    getConfirmCodeClick(){    //点击了获取验证码事件
      this.timeKeeping = true    //激活倒计时按钮
    },
    timeKeepingDone(){    //倒计时时间完成，置为false
      this.timeKeeping = false
    },
  }
</script>

<style lang="scss" scoped>
</style>
